<?php

class Index extends Controller {

	function __construct() {
		parent::__construct();
	}
	
	function index() {
		Session::init();
			$logged = Session::get('loggedIn');
			if ($logged == true) {
				$this->view->index = $this->view->render('dashboard/index');
			}else {
				$this->view->render('index/index');
			}	
			
		}
	
	function details() {
		$this->view->render('index/index');
	}
	
}